package com.project.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
@Data
@TableName(value = "cms_product_category")
@Table(name = "cms_product_category", comment = "产品类目")
public class CmsProductCategory implements Serializable {
    /**
     * 产品类目ID
     */
    @TableId
    @Column(type= MySqlTypeConstant.BIGINT, comment = "产品类目ID", length = 11, isKey = true, isAutoIncrement = true,isNull = false)
    private Long categoryId;

    /**
     * 类目名称
     */
    @Column(comment = "类目名称")
    private String categoryName;

    /**
     * 类目图片
     */
    @Column(comment = "类目图片")
    private String categoryImg;

    /**
     * 上级类目
     */
    @Column(comment = "上级类目")
    private Long parentId;

    /**
     * 创建人
     */
    @Column(comment = "创建人")
    private Long createUser;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间", type = MySqlTypeConstant.DATETIME)
    private Date createTime;

    /**
     * 修改人
     */
    @Column(comment = "修改人")
    private Long updateUser;

    /**
     * 修改时间
     */
    @Column(comment = "修改时间", type = MySqlTypeConstant.TIMESTAMP)
    private Date updateTime;

    /**
     * 状态（-1:删除,1:正常）
     */
    @Column(comment = "删除标志（-1:删除,1:正常）", defaultValue = "1")
    private Integer status;

    private static final long serialVersionUID = 1L;


}